package com.ruoyi.project.system.water.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 宿舍水电管理对象 dormitory_power_water
 * 
 * @author ruoyi
 * @date 2023-07-05
 */
public class DormitoryPowerWater extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long iid;

    /** 宿舍id */
    @Excel(name = "宿舍id")
    private Long dormitoryIid;

    /** 电费 */
    @Excel(name = "电费")
    private Long powerPrice;

    /** 水费 */
    @Excel(name = "水费")
    private Long usedWaterPrice;

    /** 提交日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "提交日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date submitDate;

    public void setIid(Long iid)
    {
        this.iid = iid;
    }

    public Long getIid()
    {
        return iid;
    }
    public void setDormitoryIid(Long dormitoryIid)
    {
        this.dormitoryIid = dormitoryIid;
    }

    public Long getDormitoryIid()
    {
        return dormitoryIid;
    }
    public void setPowerPrice(Long powerPrice)
    {
        this.powerPrice = powerPrice;
    }

    public Long getPowerPrice()
    {
        return powerPrice;
    }
    public void setUsedWaterPrice(Long usedWaterPrice)
    {
        this.usedWaterPrice = usedWaterPrice;
    }

    public Long getUsedWaterPrice()
    {
        return usedWaterPrice;
    }
    public void setSubmitDate(Date submitDate)
    {
        this.submitDate = submitDate;
    }

    public Date getSubmitDate()
    {
        return submitDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("iid", getIid())
            .append("dormitoryIid", getDormitoryIid())
            .append("powerPrice", getPowerPrice())
            .append("usedWaterPrice", getUsedWaterPrice())
            .append("submitDate", getSubmitDate())
            .toString();
    }
}
